<?php
/**
 * Created by PhpStorm.
 * User: lijie
 * Date: 2018/10/7
 * Time: 18:30
 */
namespace app\reserve\validate;

use think\Validate;

class Cashbill extends Validate{

    protected $rule = [
        'id'                => ['require','number'],
        'a_id'              => ['require','number'],
        'price'             => ['require','number'],
        'lessorad'          => ['require','number'],
        'content'           => ['require'],
        'pagenum'           => ['require','number'],
        'listNum'           => ['require','number']
    ];

    protected $message = [
        'id'                => 'id不能为空',
        'a_id'              => 'a_id不能为空',
        'price'             => 'wash_id不能为空',
        'lessorad'          => 'washpro_id不能为空',
        'content'           => 'pay_price不能为空',
        'pagenum'           => '页数不能为空',
        'listNum'           => '条数不能为空'
    ];

    protected $scene = [
        // 列表
        'billList'   => ['pagenum','listNum'],
    ];
}